package com.sixth.service.impl;

import com.sixth.bean.vo.WxUserIndexVo;
import com.sixth.mapper.MarketOrderMapper;
import com.sixth.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName WxUserServiceImpl
 * @Description TODO
 * @Author XiaoWJ
 * @Date 2022/9/10 23:03
 **/

@Service
public class WxUserServiceImpl implements WxUserService {

    @Autowired
    MarketOrderMapper marketOrderMapper;


    @Override
    public WxUserIndexVo index(Integer id) {
        WxUserIndexVo wxUserIndexVo = marketOrderMapper.selectStatusCount(id);

        if(wxUserIndexVo==null){
            return new WxUserIndexVo();
        }
        
        return wxUserIndexVo;
    }
}
